Efficient String Concatenation in python